import HttpService from "@/api";

/**
 * @description 获取登录日志列表
 * @param params
 * @returns
 */
export const getLoginInfoListApi = (params: any) => HttpService.get<any>(`/monitor/loginInfo/list`, { params });

/**
 * @description 删除登录日志
 * @param infoIds
 * @returns
 */
export const delLoginInfoApi = (infoIds: string) => HttpService.delete<any>(`/monitor/loginInfo/${infoIds}`);

/**
 * @description 清空登录日志
 * @param
 * @returns
 */
export const cleanLoginInfoApi = () => HttpService.delete<any>(`/monitor/loginInfo/clean`);

/**
 * @description 解锁账户
 * @param
 * @returns
 */
export const unlockLoginInfoApi = (userName: string) => HttpService.get<any>(`/monitor/loginInfo/unlock/${userName}`);
